package com.automapper.utils;

import java.util.Properties;

/**
 * 拦截器参数配置
 * 参数：isNullToDefaultValue，值是boolean类型
 * @author K
 *
 */
public class PropertiesFacade {
	
	private Properties properties;
	private String key;

	public PropertiesFacade(Properties properties) {
		super();
		this.properties = properties;
	}
	
	public boolean isNullToDefaultValue() {
		String value = properties.getProperty("isNullToDefaultValue");
		return new Boolean(value.trim());
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}
}
